package cn.zhizihua.controller;

import cn.zhizihua.pojo.Business;
import cn.zhizihua.query.BusinessQuery;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

@Api(value = "商家的API",description="商家相关的CRUD功能")
//@CrossOrigin   通过该注解我们完成允许跨域的设置   还可以通过配置类的方式来进行设置
@RestController
@RequestMapping("/business")   //模块路径
public class BusinessController extends BaseController<Business,BusinessQuery> {

//    @Autowired
//    IBusinessService businessService;

//    @PostMapping("/all")  //post /xxx/all
//    public ResultBean getAll(@RequestBody BusinessQuery businessQuery){
//        System.out.println("-------BaseController--------getAll-------------");
//        return baseService.getAll(businessQuery);
//    }

}
